﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FurnitureDesign.Core.Models
{
    public class User
    {
        [Key]
        public int Id { get; set; }

        [Display(Name = "用户名")]
        [Required(ErrorMessage = "用户名不能为空")]
        public string Name { get; set; }

        [Display(Name = "性别")]
        [Required(ErrorMessage = "性别不能为空")]
        public string Sex { get; set; }

        [Display(Name = "年龄")]
        [Required(ErrorMessage = "年龄不能为空")]
        public int Age { get; set; }

        [Display(Name = "身份证号")]
        [Required(ErrorMessage = "身份证号不能为空")]
        public string IDNumber { get; set; }

        [Display(Name = "手机号")]
        [Required(ErrorMessage = "手机号不能为空")]
        public string Phone { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }

        [Display(Name = "邮箱")]
        [Required(ErrorMessage = "邮箱不能为空")]
        public string Email { get; set; }
    }
}
